package com.itheima.reggie.service;

import com.itheima.reggie.domain.Address;

import java.util.List;

public interface AddressService {
    //保存地址
    void save(Address address);

    //查询列表
    List<Address> findList();

    //按照id查询
    Address findById(Long id);

    //修改
    void updateById(Address address);

    //删除
    void delete(List<Long> ids);

    //设置默认
    void setDefault(Long id);

    //查询默认地址
    Address findDefault();
}
